package com.lagou.edu.listener;

import java.util.Map;

/**
 * @author wuyancheng
 */
public class ContextLoader {

    public static void doLoadContext(){
        ScanPackage scanPackage = new ScanPackage();
        try {
            Map<String, BeanDefinition> beanDefinitionMap = scanPackage.doLoadBeanDefinition("com.lagou.edu");
            CreateBean createBean = new CreateBean();
            createBean.createBeans(beanDefinitionMap);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
